package com.lzx.adx.report.enums;

import lombok.Getter;

public enum ViVoTaoBaoCovertEnum {
    HOME_LOOK("5", "落地页访问", "REACTIVATION"),
    ORDER_PAYMENT("11", "淘客订单支付", "PAY"),
    ;

    @Getter
    private String code;

    @Getter
    private String msg;
    @Getter
    private String codeMapperCode;

    ViVoTaoBaoCovertEnum(String code, String msg, String codeMapperCode) {
        this.code = code;
        this.msg = msg;
        this.codeMapperCode = codeMapperCode;
    }


    public static String getViVoCode(String elmCode) {
        ViVoTaoBaoCovertEnum[] values = ViVoTaoBaoCovertEnum.values();
        for (ViVoTaoBaoCovertEnum value : values) {
            if (value.getCode().equals(elmCode)) {
                return value.codeMapperCode;
            }
        }
        return null;
    }

}
